package com.pers.myrule;

import com.netflix.loadbalancer.IRule;
import com.netflix.loadbalancer.RandomRule;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @Author: 黄建
 * @Date: 2020/3/8 17:23
 */
@Configuration
public class MySelfRule {

    @Bean
    public IRule MyRule(){
        return new RandomRule();
    }
}
